package org.kwisatz.proxybot.core;
import java.io.PrintWriter;

import org.kwisatz.proxybot.Context;


/** Send notice to the IRC client (do not use for the IRC server !) */
public class NoticePrintWriter extends PrintWriter
{
	private Context context;

	public NoticePrintWriter(Context context)
	{
		super(context.getClient());
		this.context=context;
	}
	
	public void println(String x)
	{
		super.println(":ProxyBot!ProxyBot@localhost NOTICE "+context.getNickName()+" :"+x);
		flush();
	}
}
